package com.warmlight.voicepacket.widget;

import android.content.Context;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

import com.warmlight.voicepacket.R;

/**
 * Created by jason on 2018/5/25.
 */

public class FloatInfo extends RelativeLayout {

    private Context mContext;
    private RelativeLayout mContainer;

    public FloatInfo(Context context) {
        super(context);
        mContext = context;
        init();
    }

    public FloatInfo(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext = context;
        init();
    }

    public FloatInfo(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        mContext = context;
        init();
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    public FloatInfo(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        mContext = context;
        init();
    }


    private void init(){
        mContainer = (RelativeLayout) View.inflate(mContext, R.layout.float_info_content, this);
    }
}
